package notes.java.sjms23.s9_memetno;

// 备忘录
public class EmpMemetno {

    // 与发起人相同的属性
    private String name;
    private int age;
    private double salary;
    
    // 构造方法
    public EmpMemetno(Emp emp) {
        this.name = emp.getName();
        this.age = emp.getAge();
        this.salary = emp.getSalary();
    }

    
    public String getName() {
        return name;
    }

    
    public void setName(String name) {
        this.name = name;
    }

    
    public int getAge() {
        return age;
    }

    
    public void setAge(int age) {
        this.age = age;
    }

    
    public double getSalary() {
        return salary;
    }

    
    public void setSalary(double salary) {
        this.salary = salary;
    }
    
    
}
